{% extends 'layout.html' %}

{% block content %}
    <div class="container">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">添加部门</h3>
          </div>
          <div class="panel-body">
             <form method="post">
                 <!--必须添加隐藏token,django会自动校验 -->
                 {% csrf_token %}
              <div class="form-group">
                <label >部门名称</label>
                <input type="text" class="form-control"  placeholder="部门名称" name="deptname">
              </div>

              <button type="submit" class="btn btn-primary">提 交</button>
            </form>
          </div>
        </div>



    </div>

{% endblock %}
